package com.shinnawy.ispeaka;

import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;


public class iSpeakaWidget extends AppWidgetProvider {
	@Override
	public void onEnabled(Context context) {
		Logger.Log(this, "onEnabled");
		context.startService(new Intent(context, iSpeakaService.class));
		WIDGET_CONTEXT = context;
	}
	
	@Override
	public void onDisabled(Context context) {
		Logger.Log(this, "onDisabled");
		context.stopService(new Intent(context, iSpeakaService.class));
		WIDGET_CONTEXT = null;
	}
	
	public static Context WIDGET_CONTEXT; 
}
